package service.service_login;

import java.util.List;

import dao.oc_operator_user.Dao_Oc_Operator_User;
import dao.oc_user_name.Dao_Oc_User_Name;
import dao.rolepower.Dao_RolePower;
import dao.systemtree.Dao_SystemTree;
import entitybean.oc_operator_user.EntityBeanOc_Operator_User;
import entitybean.oc_user_name.EntityBeanOc_User_Name;
import entitybean.rolepower.EntityBeanRolepower;
import entitybean.systemtree.EntityBeanSystemtree;

public class ServiceImpl_Login implements Service_Login {

	private Dao_Oc_User_Name dao_oc_user_name;
	private Dao_Oc_Operator_User dao_oc_operator_user;
	private Dao_RolePower dao_rolepower;
	private Dao_SystemTree dao_systemtree;
	
	public Dao_SystemTree getDao_systemtree() {
		return dao_systemtree;
	}

	public void setDao_systemtree(Dao_SystemTree daoSystemtree) {
		dao_systemtree = daoSystemtree;
	}

	public Dao_RolePower getDao_rolepower() {
		return dao_rolepower;
	}

	public void setDao_rolepower(Dao_RolePower daoRolepower) {
		dao_rolepower = daoRolepower;
	}

	public void Insert_Oc_Operator_User(EntityBeanOc_Operator_User e) {
		this.dao_oc_operator_user.Insert_Oc_Operator_User(e);
	}

	public void Update_Oc_Operator_User(EntityBeanOc_Operator_User e) {
		this.dao_oc_operator_user.Update_Oc_Operator_User(e);
	}

	public void Delete_Oc_Operator_User(EntityBeanOc_Operator_User e) {
		this.dao_oc_operator_user.Delete_Oc_Operator_User(e);
	}

	public List<EntityBeanOc_Operator_User> Find_EntityBeanOc_Operator_User_by_account_and_password(
			String account, String password) {
		return this.dao_oc_operator_user
				.Find_EntityBeanOc_Operator_User_by_account_and_password(
						account, password);
	}

	public Dao_Oc_Operator_User getDao_oc_operator_user() {
		return dao_oc_operator_user;
	}

	public void setDao_oc_operator_user(Dao_Oc_Operator_User daoOcOperatorUser) {
		dao_oc_operator_user = daoOcOperatorUser;
	}

	public Dao_Oc_User_Name getDao_oc_user_name() {
		return dao_oc_user_name;
	}
	public EntityBeanOc_User_Name Find_EntityBeanOc_User_Name_Admin(String username,String password)
	{
		return this.dao_oc_user_name.Find_EntityBeanOc_User_Name_Admin(username, password);
		
	}
	public void setDao_oc_user_name(Dao_Oc_User_Name dao_oc_user_name) {
		this.dao_oc_user_name = dao_oc_user_name;
	}

	public void Insert_Oc_User_Name(EntityBeanOc_User_Name e) {
		this.dao_oc_user_name.Insert_Oc_User_Name(e);
	}

	public void Update_Oc_User_Name(EntityBeanOc_User_Name e) {
		this.dao_oc_user_name.Update_Oc_User_Name(e);
	}

	public void Delete_Oc_User_Name(EntityBeanOc_User_Name e) {
		this.dao_oc_user_name.Delete_Oc_User_Name(e);
	}

	public EntityBeanOc_User_Name Find_EntityBeanOc_User_Name(String username,
			String password) {
		return this.dao_oc_user_name.Find_EntityBeanOc_User_Name(username,
				password);
	}

	public EntityBeanOc_User_Name Find_EntityBeanOc_User_Name_By_ID(Integer id) {
		return this.dao_oc_user_name.Find_EntityBeanOc_User_Name_By_ID(id);

	}

	public void Insert_Rolepower(EntityBeanRolepower entitybeanrolepower) {
		this.dao_rolepower.Insert_Rolepower(entitybeanrolepower);
	}

	public void Update_Rolepower(EntityBeanRolepower entitybeanrolepower) {
		this.dao_rolepower.Update_Rolepower(entitybeanrolepower);
	}

	public void Delete_Rolepower(EntityBeanRolepower entitybeanrolepower) {
		this.dao_rolepower.Delete_Rolepower(entitybeanrolepower);
	}

	public List<EntityBeanRolepower> Find_Rolepower_By_role_id(Integer role_id) {
		return this.dao_rolepower.Find_Rolepower_By_role_id(role_id);
	}
	
	public void Insert_SystemTree (EntityBeanSystemtree entitybeansystemtree)
	{
		this.dao_systemtree.Insert_SystemTree(entitybeansystemtree);
	}
	public void Update_SystemTree (EntityBeanSystemtree entitybeansystemtree)
	{
		this.dao_systemtree.Update_SystemTree(entitybeansystemtree);
	}
	public void Delete_SystemTree (EntityBeanSystemtree entitybeansystemtree)
	{
		this.dao_systemtree.Delete_SystemTree(entitybeansystemtree);
	}
	public EntityBeanSystemtree Find_SystemTree_By_f_jd (Integer f_jd)
	{
		return this.dao_systemtree.Find_SystemTree_By_f_jd(f_jd);
	}
	public List<EntityBeanSystemtree> Find_SystemTree_By_Root()
	{
		return this.dao_systemtree.Find_SystemTree_By_Root();
	}
	public List<EntityBeanSystemtree> Find_SystemTree_By_c_jd(Integer c_jd)
	{
		return this.dao_systemtree.Find_SystemTree_By_c_jd(c_jd);
	}
	public String Show_All_SystemTree_R(String key,String picpathA,String picpahtB)
	{
		return this.dao_systemtree.Show_All_SystemTree_R(key, picpathA, picpahtB);
	}
	//����ֱ��չʾһ����״�ṹ��������һ����ѡģʽ��ֵ,�����������keyʱ������ݱ�ѡ��,ʹ��picpathA����Ƭװ�����²�˵�����ݣ�ʹ��picpathB����Ƭװ�����²�˵������
	public String Show_All_SystemTree_C(List<String> keylist,String picpathA,String picpahtB)
	{
		return this.dao_systemtree.Show_All_SystemTree_C(keylist, picpathA, picpahtB);
	}
	//����ֱ��չʾһ����״�ṹ��������һ����ѡ��ģʽ��ֵ,�����������keylistʱ��Щ��ݱ�ѡ�У�ʹ��picpathA����Ƭװ�����²�˵�����ݣ�ʹ��picpathB����Ƭװ�����²�˵������
	public List<EntityBeanSystemtree> Find_SystemTree_In_c_jd(String c_jd)
	{
		return this.dao_systemtree.Find_SystemTree_In_c_jd(c_jd);
	}

	public EntityBeanOc_User_Name Find_EntityBeanOc_By_Email(String email) {

		return dao_oc_user_name.Find_EntityBeanOc_By_Email(email);
	}
}
